package com.charging.controller.app;


import com.charging.bean.Advertisement;
import com.charging.bean.layuiBean.ResultPage;
import com.charging.bean.layuiBean.VoPage;
import com.charging.config.config.BaseController;
import com.charging.config.result.ApiResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <p>
 * 小程序广告 前端控制器
 * </p>
 *
 * @author 冯政尚
 * @since 2019-09-20
 */
@Controller
@RequestMapping("app/advertisement")
@Api(value = "广告类", tags = {"广告类"})
public class AdvertisementAppController extends BaseController {

    @ApiOperation(value = "查询广告取第一条")
    @RequestMapping(value = "selectList",method = RequestMethod.GET)
    @ResponseBody
    public List selectList(){
      return advertisementService.selectList();
  }

}
